import request from '@/utils/request'

// 登录
export const login = (data) => {
  return request({
    url: '/auth/login',
    method: 'post',
    data
  })
}

export const changePassword = (data) => {
  return request.post('/auth/repassword', data)
}

export const getUserInfo = () => {
  return request.get('/auth/userInfo')
}